package com.zeros.mysplashtwo;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

/**
 * Created by Administrator on 2017/12/22.
 */

public class MyApplication extends Application {

    private static String token = "";
    @SuppressLint("StaticFieldLeak")
    private static Context context;

    public static String getToken() {
        return token;
    }

    public static void setToken(String token) {
        MyApplication.token = token;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
    }

    public static Context getContext() {
        return context;
    }

}
